package com.mall.huohuo.enums;

public  enum  ResultEnum {
    SUCCESS(200,"success"),
    /**
     * token相关的状态码
     */
    TOKEN_LOSE(401, "token丢失"),

    /**
     * 用户相关
     */
    USER_ACCOUNT_FORBIDDEN(10001, "账号禁用");

    private Integer code;
    private String description;

    ResultEnum(Integer code, String description) {
        this.code = code;
        this.description = description;
    }

    public  Integer getCode(){
        return this.code;
    }

    public ResultEnum setCode(Integer code) {
        this.code = code;
        return this;
    }

    public String getDescription() {
        return description;
    }

    public ResultEnum setDescription(String description) {
        this.description = description;
        return this;
    }
}
